package cn.com.shopec.erp.product.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
 * 
 * @ClassName: Defective
 * @Description: 次品实体类
 * @author: LiangShunWang
 * @date 2016-11-21 下午14:44:49
 * 
 */
@Entity
@Table(name = "TBL_DEFECTIVE")
public class Defective implements Serializable {

	private static final long serialVersionUID = -7530599440348653900L;

	/** id **/
	private String id;
	/** 货品编号 **/
	private String prodNo;
	/** 商品编号 **/
	private String commoNo;
	/** 商品名称 **/
	private String commoName;
	/** 次品转换数量 **/
	private String defectiveNumber;
	/** 次品原因 **/
	private String defectiveReason;
	/** 次品处理(1.退货,2.换货,3.其他) **/
	private Integer dealWith;
	/** 仓库编号 **/
	private String whNo;
	/** 仓库名称 **/
	private String whName;
	/** 入库方式(1.采购，2.销售退货入库，3.其他) **/
	private Integer storageMethods;
	/** 所属采购单 **/
	private String poNo;
	/** 供应商编号 **/
	private String supCode;
	/** 供应商名称 **/
	private String supName;
	/** 规格名称 **/
	private String specName;
	/** 处理状态 **/
	private Integer storageState;
	/** 处理时间 **/
	private String dealwithTime;
	/** 录入时间 **/
	private String createTime;
	/** 审核时间 **/
	private String aduitTime;
	/** 入库人员 **/
	private String storageMan;
	/** 处理人员 **/
	private String dealwithMan;
	/** 删除标志( 0:已删除 1：未删除) **/
	private int deleteFlag;
	/** 次品描述 **/
	private String description;
	/** 货品条码 **/
	private String prodBarCode;
	/** 现良品数量 **/
	private String changedQualifiedQuantity;
	/** 现次品数量 **/
	private String changedDefectiveQuantity;

	public Defective() {
	}

	public Defective(String id, String prodNo, String commoNo, String commoName, String defectiveNumber,
			String defectiveReason, Integer dealWith, String whNo, String whName, Integer storageMethods, String poNo,
			String supCode, String supName, String specName, Integer storageState, String dealwithTime,
			String createTime, String storageMan, String dealwithMan, int deleteFlag, String description,
			String prodBarCode, String changedQualifiedQuantity, String changedDefectiveQuantity) {
		super();
		this.id = id;
		this.prodNo = prodNo;
		this.commoNo = commoNo;
		this.commoName = commoName;
		this.defectiveNumber = defectiveNumber;
		this.defectiveReason = defectiveReason;
		this.dealWith = dealWith;
		this.whNo = whNo;
		this.whName = whName;
		this.storageMethods = storageMethods;
		this.poNo = poNo;
		this.supCode = supCode;
		this.supName = supName;
		this.specName = specName;
		this.storageState = storageState;
		this.dealwithTime = dealwithTime;
		this.createTime = createTime;
		this.storageMan = storageMan;
		this.dealwithMan = dealwithMan;
		this.deleteFlag = deleteFlag;
		this.description = description;
		this.prodBarCode = prodBarCode;
		this.changedQualifiedQuantity = changedQualifiedQuantity;
		this.changedDefectiveQuantity = changedDefectiveQuantity;
	}

	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "ID", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "defective_number")
	public String getDefectiveNumber() {
		return defectiveNumber;
	}

	public void setDefectiveNumber(String defectiveNumber) {
		this.defectiveNumber = defectiveNumber;
	}

	@Column(name = "defective_reason")
	public String getDefectiveReason() {
		return defectiveReason;
	}

	public void setDefectiveReason(String defectiveReason) {
		this.defectiveReason = defectiveReason;
	}

	@Column(name = "deal_with")
	public Integer getDealWith() {
		return dealWith;
	}

	public void setDealWith(Integer dealWith) {
		this.dealWith = dealWith;
	}

	@Column(name = "storage_methods")
	public Integer getStorageMethods() {
		return storageMethods;
	}

	public void setStorageMethods(Integer storageMethods) {
		this.storageMethods = storageMethods;
	}

	@Column(name = "poNo")
	public String getPoNo() {
		return poNo;
	}

	public void setPoNo(String poNo) {
		this.poNo = poNo;
	}

	@Column(name = "sup_code")
	public String getSupCode() {
		return supCode;
	}

	public void setSupCode(String supCode) {
		this.supCode = supCode;
	}

	@Column(name = "STORAGE_STATE")
	public Integer getStorageState() {
		return storageState;
	}

	public void setStorageState(Integer storageState) {
		this.storageState = storageState;
	}

	@Column(name = "dealwith_time")
	public String getDealwithTime() {
		return dealwithTime;
	}

	public void setDealwithTime(String dealwithTime) {
		this.dealwithTime = dealwithTime;
	}

	@Column(name = "storage_man")
	public String getStorageMan() {
		return storageMan;
	}

	public void setStorageMan(String storageMan) {
		this.storageMan = storageMan;
	}

	@Column(name = "dealwith_man")
	public String getDealwithMan() {
		return dealwithMan;
	}

	public void setDealwithMan(String dealwithMan) {
		this.dealwithMan = dealwithMan;
	}

	@Column(name = "delete_flag")
	public int getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(int deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Column(name = "sup_name")
	public String getSupName() {
		return supName;
	}

	public void setSupName(String supName) {
		this.supName = supName;
	}

	@Column(name = "create_time")
	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "DESCRIPTION")
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Column(name = "PRODBAR_CODE")
	public String getProdBarCode() {
		return prodBarCode;
	}

	public void setProdBarCode(String prodBarCode) {
		this.prodBarCode = prodBarCode;
	}

	@Column(name = "PROD_NO")
	public String getProdNo() {
		return prodNo;
	}

	public void setProdNo(String prodNo) {
		this.prodNo = prodNo;
	}

	@Column(name = "COMMO_NO")
	public String getCommoNo() {
		return commoNo;
	}

	public void setCommoNo(String commoNo) {
		this.commoNo = commoNo;
	}

	@Column(name = "COMMO_NAME")
	public String getCommoName() {
		return commoName;
	}

	public void setCommoName(String commoName) {
		this.commoName = commoName;
	}

	@Column(name = "whNo")
	public String getWhNo() {
		return whNo;
	}

	public void setWhNo(String whNo) {
		this.whNo = whNo;
	}

	@Column(name = "whName")
	public String getWhName() {
		return whName;
	}

	public void setWhName(String whName) {
		this.whName = whName;
	}

	public String getSpecName() {
		return specName;
	}

	public void setSpecName(String specName) {
		this.specName = specName;
	}

	@Column(name = "CHANGED_QUALIFIED_QUANTITY")
	public String getChangedQualifiedQuantity() {
		return changedQualifiedQuantity;
	}

	public void setChangedQualifiedQuantity(String changedQualifiedQuantity) {
		this.changedQualifiedQuantity = changedQualifiedQuantity;
	}

	@Column(name = "CHANGED_DEFECTIVE_QUANTITY")
	public String getChangedDefectiveQuantity() {
		return changedDefectiveQuantity;
	}

	public void setChangedDefectiveQuantity(String changedDefectiveQuantity) {
		this.changedDefectiveQuantity = changedDefectiveQuantity;
	}
	@Column(name = "aduit_time")
	public String getAduitTime() {
		return aduitTime;
	}

	public void setAduitTime(String aduitTime) {
		this.aduitTime = aduitTime;
	}

	
}